<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name ="keywords" content="{{$metakeyword}}">
    <meta name="description" content="{{$metadesp}}">
    <title>分类-个人的直播秀</title>
    <link rel="stylesheet" href="/css/layout.css">
    <link rel="stylesheet" href="/css/lay_icon.css">
    <link rel="stylesheet" href="/css/index.css">
</head>
<body>
<div class="header">
    <div class="logo">
        <a href="">MINI秀 <b>bete1.0</b></a>
    </div>
    <div class="l_rt">
        @if($user['islogin']==1)
            <div class="login_user">
                <div class="user_info">
                    <div class="user_icon">
                        <img src="{{$user['bigpic']}}" alt="">
                    </div>
                    <div class="user_name"><a href="/profile">{{$user['username']}}</a></div>
                </div>
                <a href="" style="font-size: 14px">退出</a>
            </div>
        @else
            <a href="javascript:;" onclick="login()">登录</a>
            <a href="javascript:;" onclick="register()">注册</a>
        @endif
    </div>
</div>
<div class="content">
    <div class="setbar">
        <ul>
            <li><a href="/"><i class="home"></i><span>首页</span></a></li>
            <li><a href="/cate/index"><i class="cate"></i><span>分类</span></a></li>
            <li><a href=""><i class="gc"></i><span>广场</span></a></li>
            <li><a href=""><i class="fa"></i><span>Fans</span></a></li>
            <li><i class="hide"></i><span>隐藏</span></li>
        </ul>
    </div>
    <div class="con">
        <div class="cate_item1">
            <span><a href="/cate/index" @if(!isset($_GET['cid'])) class="active1" @endif>全部直播</a></span>
            @foreach($roomcate as $k=>$v)
                <span><a href="?cid={{$v['id']}}" @if(isset($_GET['cid']) && $_GET['cid'] == $v['id'])class="active1" @endif>{{$v['catename']}}</a></span>
            @endforeach
        </div>
        <div class="cate_list1" style="min-height: 600px">
            @if(empty($data))
                <p class="nodata">暂无直播内容</p>
            @else
                @foreach($data as $v)
                 <div class="cate_item_list">
                     <a href="/live/room/{{$v['num']}}" style="color: #6b6b6b">
                      <div class="cate_item_png">
                          <img src="/images/{{$v['roomcover']}}" alt="">
                      </div>
                      <div class="cate_item_info">
                            <div class="uname" style="padding-left: 10px;">{{$v['member']['nickname']}}</div>
                            <div class="c"><span><i class="icon_16 a"></i>{{$v['attention']}}</span> <span style="float: right; margin-right: 5px;">{{$v['catename']}}</span></div>
                      </div>
                     </a>
                 </div>
                @endforeach
            @endif
        </div>
    </div>
</div>
<div class="layout">

</div>
<div class="footer"></div>
</body>
</html>